<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ADMINZ</title>
<base href="http://{$smarty.server.HTTP_HOST}{$this->baseUrl()}/" />
<meta http-equiv="Content-Type" content="text/html; charset={$this->getEncoding()}"/>
<link rel="stylesheet" type="text/css" href="css/humanity/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/admin.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
</head>
<body>

<div id="login">
{$form->setAction($this->url())}
<div class="errors" style="position:absolute;margin-top:40px;">
{if !empty($smarty.post)}{'admin.error'|t}{/if}
</div>
</div>

<script type="text/javascript">
$('#login').dialog({
	title:'{"admin.login"|t}',
	width: '350px',
	modal: true,
	draggable: false,
	resizable: false,
	buttons: {
		'{"button.login"|t}': function() {
			$('#login form').submit();
		}
	},
	open: function() {
		$('.ui-dialog-titlebar-close').hide();
	}
});
if ($('#username').val() != '') {
	$('#userpass').select();
} else {
	$('#username').select();
}
</script>

</body>
</html>
